function OnAjaxStop() {
    $('input:button').addClass('button');
    $('input:text').addClass('txt');
    $('textarea').addClass('txt');
    $('select').addClass('txt');
}

$(document).ready(
	function() {

	    $('#tabs ul').tabs();

	    $('.rounded').each(function(i) {
	        this.id = "rounded_" + i;
	        $(this).corners({
	            radio: 10,
	            inColor: '#000000',
	            outColor: '#300507',
	            borderSize: 1,
	            borderColor: '#cccccc'
	        });
	    });

	    $('.ui-tabs-panel').corners({
	        radio: 10,
	        inColor: '#000000',
	        outColor: '#300507',
	        borderSize: 1,
	        borderColor: '#cccccc'
	    });

	    $('.ui-tabs-panel .UpLeftCorner').css('display', 'none');

	    $('ul.sf-menu').superfish({
	        pathClass: 'current'
	    });

	    $('#accordion').accordion({
	        header: ".ui-accordion-header",
	        active: ".current",
	        clearStyle: true
	    });


	    OnAjaxStop();

	   

	    $('#loader').ajaxStart(function() {
	        $(this).show();
	    });

	    $('#loader').ajaxStop(function() {
	        $(this).hide();
	        OnAjaxStop();

	    });


	}
);






